import java.util.Random;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:26554
 * Date:2024-10-27
 * Time:19:45
 */
public class 猜数字 {
    public static void main(String[] args) {
        Random random = new Random();
        int mat = random.nextInt(100);
        Scanner scan= new Scanner(System.in);
        while(true){
            System.out.print("请输入要猜的数字:");
            int m=scan.nextInt();
            if(m==mat) {
                System.out.println("找到了");
                break;
            }else if(m>mat) {
                System.out.println("猜大了");
            }else {
                System.out.println("猜小了");
            }

          }
        }
    }
